import request from '@/utils/request'
//网站栏目
export function sysWebColumnQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/sysWebColumn/query',
    params: data,
  })
}

export function sysWebColumnQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/sysWebColumn/query/' + id,
  })
}

export function sysWebColumnAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/sysWebColumn/add',
    data,
  })
}

export function sysWebColumnDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/sysWebColumn/delete/' + id,
  })
}

export function sysWebColumnDeleteBatch(data) {
  //批量删除
  return request({
    method: 'post',
    url: '/sysWebColumn/deleteBatch',
    data,
  })
}

export function sysWebColumnUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/sysWebColumn/update',
    data,
  })
}

export function sysWebColumnOpenApiQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/sysWebColumn/openApi/query',
    params: data,
  })
}
